package com.bloveoacom.weichi.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.blankj.utilcode.util.AppUtils;
import com.bloveoacom.base.BaseActivity;
import com.bloveoacom.util.StringUtils;
import com.bloveoacom.util.ToastUtil;
import com.bloveoacom.weichi.R;
import com.bloveoacom.weight.LlkjToolBar;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * author: yjl
 * e-mail: 1271901673@qq.com
 * time  : 2018/9/21
 * desc  :
 */
public class ContactUsActivity extends BaseActivity {
    @BindView(R.id.title_bar)
    LlkjToolBar mToolbar;
    @BindView(R.id.tv_version)
    TextView tvVersion;
    @BindView(R.id.tv_describ)
    TextView tvDescrib;


    @Override
    public int getLayoutResId() {
        return R.layout.activity_contactus;
    }

    @Override
    protected View getViewSetTB() {
        return mToolbar;
    }

    @Override
    public void initView() {
        mToolbar.setToolBar("联系我们",
                true, "", R.drawable.ic_back, false, "", LlkjToolBar.isNull);
        tvVersion.setText("当前版本号:V"+AppUtils.getAppVersionName());
        tvDescrib.setText("简介");
    }

    @Override
    public void initData() {

    }

    @Override
    public void getBundleExtras(Bundle extras) {

    }

    @Override
    public void initListener() {

    }

    @OnClick({R.id.bg_view_one, R.id.bg_view_two, R.id.bg_view_three})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.bg_view_one:
                StringUtils.copyText("EMT电音科技");
                ToastUtil.makeShortText(mContext,"复制成功");
                break;
            case R.id.bg_view_two:
                StringUtils.copyText("emtchain");
                ToastUtil.makeShortText(mContext,"复制成功");
                break;
            case R.id.bg_view_three:
                StringUtils.copyText("https://t.me/EMTChain");
                ToastUtil.makeShortText(mContext,"复制成功");
                break;
        }
    }
}
